<!--{if $_G['forum']['ismoderator']}-->
	<script type="text/javascript" src="{$_G[setting][jspath]}forum_moderate.js?{VERHASH}"></script>
<!--{/if}-->
<div class="bm pgs ptn cl">
	$multipage
	<span <!--{if $_G[setting][visitedforums]}-->id="visitedforums" onmouseover="$('visitedforums').id = 'visitedforumstmp';this.id = 'visitedforums';showMenu({'ctrlid':this.id})"<!--{/if}--> class="pgb y"><a href="forum.php?mod=group&fid=$_G[fid]">{lang return_index}</a></span>
	<button id="newspecial" class="pn pnc" onmouseover="$('newspecial').id = 'newspecialtmp';this.id = 'newspecial';showMenu({'ctrlid':this.id})" onclick="showWindow('newthread', 'forum.php?mod=post&action=newthread&fid=$_G[fid]')"><span>{lang send_posts}</span></button>
</div>
<div id="threadlist" class="tl mgh" style="position: relative;">
<!--{if $_G['forum']['threadtypes']}-->
	<div class="tl">
		<p class="ttp cl">
		<!--{if $_G['gp_typeid']}--><a href="forum.php?mod=forumdisplay&action=list&fid=$_G[fid]" class="brw">{lang forum_viewall}</a><!--{else}--><strong class="otp brw">{lang forum_viewall}</strong><!--{/if}-->
		<!--{if $_G['forum']['threadtypes']}-->
			<!--{loop $_G['forum']['threadtypes']['types'] $id $name}-->
				<!--{if $_G['gp_typeid'] != $id}-->
					<a href="forum.php?mod=forumdisplay&amp;action=list&amp;fid=$_G[fid]&amp;filter=typeid&amp;typeid=$id$forumdisplayadd[typeid]" class="brw">$name</a>
				<!--{else}-->
					<strong class="otp brw">$name</strong>
				<!--{/if}-->
			<!--{/loop}-->
		<!--{/if}-->
		{hook/forumdisplay_filter_extra}
		</p>
	</div>
<!--{/if}-->
	<form method="post" autocomplete="off" name="moderate" id="moderate" action="forum.php?mod=topicadmin&action=moderate&fid=$_G[fid]&infloat=yes&nopost=yes">
		<input type="hidden" name="formhash" value="{FORMHASH}" />
		<input type="hidden" name="listextra" value="$extra" />
		<table cellpadding="0" cellspacing="0" border="0">
			<thead>
				<tr>
					<td class="icn">&nbsp;</td>
					<!--{if $_G['forum']['ismoderator']}--><td class="icn">&nbsp;</td><!--{/if}-->
					<th>{lang thread}</th>
					<td class="by">{lang author}/{lang time}</td>
					<td class="num">{lang replies}</td>
					<td class="by">{lang lastpost}</td>
				</tr>
			</thead>
			<!--{if $_G['forum_threadcount']}-->
				<!--{loop $_G['forum_threadlist'] $key $thread}-->
					<tbody id="$thread[id]">
						<tr>
							<td class="icn">
								<a href="forum.php?mod=viewthread&tid=$thread[tid]&amp;extra=$extra" title="{lang target_blank}" target="_blank">
								<!--{if $thread[folder] == 'lock'}-->
									<img src="{IMGDIR}/folder_lock.gif" />
								<!--{elseif $thread['special'] == 1}-->
									<img src="{IMGDIR}/pollsmall.gif" alt="{lang thread_poll}" />
								<!--{elseif $thread['special'] == 2}-->
									<img src="{IMGDIR}/tradesmall.gif" alt="{lang thread_trade}" />
								<!--{elseif $thread['special'] == 3}-->
									<img src="{IMGDIR}/rewardsmall.gif" alt="{lang thread_reward}" />
								<!--{elseif $thread['special'] == 4}-->
									<img src="{IMGDIR}/activitysmall.gif" alt="{lang thread_activity}" />
								<!--{elseif $thread['special'] == 5}-->
									<img src="{IMGDIR}/debatesmall.gif" alt="{lang thread_debate}" />
								<!--{elseif in_array($thread['displayorder'], array(1, 2, 3, 4))}-->
									<img src="{IMGDIR}/pin_$thread[displayorder].gif" alt="$_G[setting][threadsticky][3-$thread[displayorder]]" />
								<!--{else}-->
									<img src="{IMGDIR}/folder_$thread[folder].gif" />
								<!--{/if}-->
							</td>
							<!--{if $_G['forum']['ismoderator']}-->
							<td class="o">
								<!--{if $thread['fid'] == $_G[fid] && $thread['digest'] >= 0}-->
									<!--{if $thread['displayorder'] <= 3 || $_G['adminid'] == 1}-->
										<input onclick="tmodclick(this)" type="checkbox" name="moderate[]" class="pc" value="$thread[tid]" />
									<!--{else}-->
										<input type="checkbox" disabled="disabled" />
									<!--{/if}-->
								<!--{else}-->
									<input type="checkbox" disabled="disabled" />
								<!--{/if}-->
							</td>
							<!--{/if}-->
							<td>
								<!--{if !empty($_G[setting][pluginhooks][forumdisplay_thread][$key])}-->
									<label>{hook/forumdisplay_thread $key}</label>
								<!--{/if}-->
								<!--{if $thread['moved']}-->
									<!--{if $_G['forum']['ismoderator']}-->
										<a href="forum.php?mod=topicadmin&action=moderate&optgroup=3&operation=delete&tid=$thread[moved]" onclick="showWindow('mods', this.href);return false">{lang thread_moved}:</a>
									<!--{else}-->
										{lang thread_moved}:
									<!--{/if}-->
								<!--{/if}-->
								$thread[typehtml]
								<span id="thread_$thread[tid]"><a href="forum.php?mod=viewthread&tid=$thread[tid]&amp;extra=$extra"$thread[highlight]>$thread[subject]</a></span>
								<!--{if $thread['readperm']}--> - [{lang readperm} <span class="bold">$thread[readperm]</span>]<!--{/if}-->
								<!--{if $thread['price'] > 0}-->
									<!--{if $thread['special'] == '3'}-->
									- <span style="color: #C60">[{lang thread_reward}{$_G[setting][extcredits][$_G['setting']['creditstransextra'][2]][title]} <span class="bold">$thread[price]</span> {$_G[setting][extcredits][$_G['setting']['creditstransextra'][2]][unit]}]</span>
									<!--{else}-->
									- [{lang price} {$_G[setting][extcredits][$_G['setting']['creditstransextra'][1]][title]} <span class="bold">$thread[price]</span> {$_G[setting][extcredits][$_G['setting']['creditstransextra'][1]][unit]}]
									<!--{/if}-->
								<!--{elseif $thread['special'] == '3' && $thread['price'] < 0}-->
									- <span style="color: #269F11">[{lang reward_solved}]</span>
								<!--{/if}-->
								<!--{if $thread['attachment'] == 2}-->
									<img src="{STATICURL}image/filetype/image_s.gif" alt="{lang attach_img}" class="vm" />
								<!--{elseif $thread['attachment'] == 1}-->
									<img src="{STATICURL}image/filetype/common.gif" alt="{lang attachment}" class="vm" />
								<!--{/if}-->
								<!--{if $thread['displayorder'] == 0}-->
									<!--{if $thread[recommendicon]}-->
										<img src="{IMGDIR}/recommend_$thread[recommendicon].gif" class="vm" alt="{lang thread_recommend}" title="{lang thread_recommend}" />
									<!--{/if}-->
									<!--{if $thread[heatlevel]}-->
										<img src="{IMGDIR}/hot_$thread[heatlevel].gif" class="vm" alt="$thread[heatlevel] {lang heats}" title="$thread[heatlevel] {lang heats}" />
									<!--{/if}-->
									<!--{if $thread['digest'] > 0}-->
										<img src="{IMGDIR}/digest_$thread[digest].gif" class="vm" alt="{lang thread_digest} $thread[digest]" title="{lang thread_digest} $thread[digest]" />
									<!--{/if}-->
									<!--{if $thread['rate'] > 0}-->
										<img src="{IMGDIR}/agree.gif" class="vm" alt="{lang rate_credit_add}" title="{lang rate_credit_add}" />
									<!--{/if}-->
								<!--{/if}-->
								<!--{if $thread[multipage]}-->
									<span class="tps">$thread[multipage]</span>
								<!--{/if}-->
							</td>
							<td>
								<cite>
								<!--{if $thread['authorid'] && $thread['author']}-->
									<a href="home.php?mod=space&uid=$thread[authorid]">$thread[author]</a>
								<!--{else}-->
									<!--{if $_G['forum']['ismoderator']}-->
										<a href="home.php?mod=space&uid=$thread[authorid]">{lang anonymous}</a>
									<!--{else}-->
										{lang anonymous}
									<!--{/if}-->
								<!--{/if}-->
								</cite>
								<em>$thread[dateline]</em>
							</td>
							<td class="num">
								$thread[replies]<em>$thread[views]</em>
							</td>
							<td>
								<cite><!--{if $thread['lastposter']}--><a href="{if $thread[digest] != -2}home.php?mod=space&username=$thread[lastposterenc]{else}forum.php?mod=viewthread&tid=$thread[tid]&amp;page={echo max(1, $thread[pages]);}{/if}">$thread[lastposter]</a></cite><!--{else}-->{lang anonymous}<!--{/if}--></cite><em><a href="{if $thread[digest] != -2}forum.php?mod=redirect&tid=$thread[tid]&amp;goto=lastpost$highlight#lastpost{else}forum.php?mod=viewthread&tid=$thread[tid]&amp;page={echo max(1, $thread[pages]);}{/if}">$thread[lastpost]</a></em>
							</td>
						</tr>
					</tbody>
				<!--{/loop}-->
			<!--{else}-->
				<tbody><tr><th colspan="6"><p class="emp">{lang forum_nothreads}</p></th></tr></tbody>
			<!--{/if}-->
		</table>
		<!--{if $_G['forum']['ismoderator'] && $_G['forum_threadcount']}-->
			{template forum/topicadmin_modlayer}
		<!--{/if}-->
	</form>
</div>
<div class="bm pgs ptn cl">
	$multipage
	<span <!--{if $_G[setting][visitedforums]}-->id="visitedforums" onmouseover="$('visitedforums').id = 'visitedforumstmp';this.id = 'visitedforums';showMenu({'ctrlid':this.id})"<!--{/if}--> class="pgb y"><a href="forum.php?mod=group&fid=$_G[fid]">{lang return_index}</a></span>
	<button id="newspecial" class="pn pnc" onmouseover="$('newspecial').id = 'newspecialtmp';this.id = 'newspecial';showMenu({'ctrlid':this.id})" onclick="showWindow('newthread', 'forum.php?mod=post&action=newthread&fid=$_G[fid]')"><span>{lang send_posts}</span></button>
</div>
<!--{if $_G['group']['allowpost'] && ($_G['group']['allowposttrade'] || $_G['group']['allowpostpoll'] || $_G['group']['allowpostreward'] || $_G['group']['allowpostactivity'] || $_G['group']['allowpostdebate'] || $_G['setting']['threadplugins'] || $_G['forum']['threadsorts'])}-->
	<ul class="p_pop" id="newspecial_menu" style="display: none">
		<!--{if !$_G['forum']['allowspecialonly']}--><li><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]" onclick="showWindow('newthread', this.href);doane(event)">{lang post_newthread}</a></li><!--{/if}-->
		<!--{if $_G['group']['allowpostpoll']}--><li class="poll"><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]&special=1">{lang post_newthreadpoll}</a></li><!--{/if}-->
		<!--{if $_G['group']['allowpostreward']}--><li class="reward"><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]&special=3">{lang post_newthreadreward}</a></li><!--{/if}-->
		<!--{if $_G['group']['allowpostdebate']}--><li class="debate"><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]&special=5">{lang post_newthreaddebate}</a></li><!--{/if}-->
		<!--{if $_G['group']['allowpostactivity']}--><li class="activity"><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]&special=4">{lang post_newthreadactivity}</a></li><!--{/if}-->
		<!--{if $_G['group']['allowposttrade']}--><li class="trade"><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]&special=2">{lang post_newthreadtrade}</a></li><!--{/if}-->
		<!--{if $_G['setting']['threadplugins']}-->
			<!--{loop $_G['forum']['threadplugin'] $tpid}-->
				<!--{if array_key_exists($tpid, $_G['setting']['threadplugins']) && @in_array($tpid, $_G['group']['allowthreadplugin'])}-->
					<li class="popupmenu_option"{if $_G['setting']['threadplugins'][$tpid][icon]} style="background-image:url($_G[setting][threadplugins][$tpid][icon])"{/if}><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]&specialextra=$tpid">{$_G[setting][threadplugins][$tpid][name]}</a></li>
				<!--{/if}-->
			<!--{/loop}-->
		<!--{/if}-->
	</ul>
<!--{/if}-->